<div class="modal-body wrapper-lg">
    <div class="row">
        <div>
            <h3 class="m-t-none m-b font-thin">修改密码</h3>

            <p></p>
            <ng-form role="form" name="form" class="form-validation">
                <div class="form-group">
                    <label>新密码</label>
                    <input type="password" ng-model="password" name="password" required class="form-control" placeholder="新密码">
                      <span style="color:red" ng-show="form.password.$dirty && form.password.$invalid">
                        <div ng-show='form.name.$error'>格式错误</div>
                        <div ng-show="form.name.$error.required">密码是必须的。</div>
                      </span>
                </div>
                <div class="form-group">
                    <label>确认密码</label>
                    <input type="password" ng-model="data.confirmPassword" ui-validate=" '$value==password' " ui-validate-watch=" 'password' " class="form-control" placeholder="确认密码">
                </div>
                <div class="checkbox m-t-lg">
                    <button type="submit" class="btn btn-sm btn-black pull-right text-uc m-t-n-xs" ng-click="cancel()">
                        <strong>取消</strong></button>
                    <button type="submit" class="btn btn-sm btn-success pull-right text-uc m-t-n-xs"
                            ng-disabled="form.$invalid" ng-click="ok()"><strong>确认修改</strong></button>
                </div>
            </ng-form>
        </div>
    </div>
</div>